package com.leo;

import com.almasb.fxgl.app.GameApplication;
import com.almasb.fxgl.app.GameSettings;
import com.almasb.fxgl.dsl.FXGL;
import com.almasb.fxgl.entity.SpawnData;
import com.leo.entity.CombinationEntityFactory;

/**
 * @Author: wangss
 * @CreateTime: 2023-06-06  19:14
 * @Description: TODO
 */
public class CombinationApp extends GameApplication {
    @Override
    protected void initSettings(GameSettings settings) {
        settings.setAppIcon("组合/网球王子.png");
    }

    @Override
    protected void initGame() {
        FXGL.getGameWorld().addEntityFactory(new CombinationEntityFactory());
        FXGL.spawn("child", new SpawnData(100, 100));
    }

    public static void main(String[] args) {
        launch(args);
    }
}
